package com.jdiv.samples.castlevania;

import com.jdiv.*;

/**
 * @author  Joyal
 */
public class Main extends JProgram{

	static int fpg_konami;
	static int fpg_castle;
	static int fpg_simon;
	static int fpg_piedra;
	/**
	 * @uml.property  name="castle"
	 * @uml.associationEnd  
	 */
	static JProcess castle;
	/**
	 * @uml.property  name="bpiedra"
	 * @uml.associationEnd  
	 */
	static JProcess bpiedra;
	/**
	 * @uml.property  name="simon"
	 * @uml.associationEnd  
	 */
	static JProcess simon;
	
	
	public Main(){
		
		JDiv.set_title("JDiv Test 7 - Castlevania");
		JDiv.set_mode(JDiv.m320x240);
		JDiv.scale_mode(JDiv.SCALENORMAL2X);
		
		fpg_konami=JDiv.load_fpg("res/fpg/konami.fpg");
		fpg_castle=JDiv.load_fpg("res/fpg/castle1.fpg");
		fpg_simon=JDiv.load_fpg("res/fpg/simon.fpg");
		fpg_piedra=JDiv.load_fpg("res/fpg/enemigo_piedra.fpg");
	
		new Konami();
	
	 
	}
	
	public void loop(){
		if (JDiv.key(_SPACE)){ JDiv.screenShot(); }
	}
	
	public static void main(String args[]){
		Main m=new Main();
	}
}
